<?php
/*
 * @o: ========================================================
 * @Created By: VsCode
 * @Author: Fu
 * @name: 管理员控制器
 * @LastEditTime: 2021-05-11 16:06:52
 * @Date: 2021-05-10 15:58:04
 * @u: ========================================================
 */

namespace app\admin\model\goods;

use think\Model;


class Goods_category extends Model
{

    

    

    // 表名
    protected $name = 'goods_category';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = false;
    protected $resultSetType = 'collection';

    // 追加属性
    protected $append = [
    ];
    public function getList($field)
    {
        $list =  $this->field($field)->limit(10)->select();
        return $list;
    }

    public function getAllList($field)
    {
        $list =  $this->field($field)->select();
        return $list;
    }

    







}
